<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>新闻发布系统</title>

<link rel="stylesheet" type="text/css" href='<s:url value="/css/admin.css" />'>

</head>
<body>
	
		<div class="top">
			<s:include value="/views/header.jsp"/>
		</div>
		
		
		<div id="left">
		<dl>
			<dt>新闻列表</dt>
			<dd><a href="new-sh?s=sh" target="iframe">社会</a></dd>
			<dd><a href="new-yl?s=yl" target="iframe">娱乐</a></dd>
			<dd><a href="new-js?s=js" target="iframe">军事</a></dd>
			<dd><a href="new-ty?s=ty" target="iframe">体育</a></dd>
		</dl>
		<dl>
			<dt>功能</dt>
			<s:if test="#session.user == null">
				<dd>&nbsp;&nbsp;&nbsp;该功能需要</dd>
				<dd><a href="login-login"><font color="red" >登陆</font></a></dd>
				<dd>&nbsp;&nbsp;&nbsp;才能使用！</dd>
			</s:if>
			<s:if test="#session.user != null">
				<dd><a href="new-input" target="iframe">新闻发布</a></dd>
			</s:if>
			<s:if test="#session.user.position.id == 2 || #session.user.position.id == 1 ">
				<dd><a href="new-list" target="iframe">新闻审核</a></dd>
			</s:if>
			<s:if test="#session.user.position.id == 1 ">
				<dd><a href="ssh-list" target="iframe">显示用户</a></dd>
			</s:if>
		</dl>
	</div>
	<div id="right">
		<iframe name="iframe" src='<s:url value="/views/welcome.jsp"  />' width="100%" height="100%" frameborder="0"></iframe>
	</div>
	
</body>
</html>